<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<div class="span-22 append-1 prepend-1">
	<fieldset>
		<legend>Sample form</legend>
		<form:form method="post" modelAttribute="user">
		<form:hidden path="id"/>
		<!--<form:errors path="*" cssClass="error"></form:errors>-->
		<table>
			<tr>
				<td>Username:</td>
				<td><form:input path="username"/></td>
				<td><form:errors path="username" cssClass="error"></form:errors></td>
			</tr>
			<tr>
				<td>First name:</td>
				<td><form:input path="firstname"/></td>
				<td><form:errors path="firstname" cssClass="error"></form:errors></td>
			</tr>
			<tr>
				<td>Last name:</td>
				<td><form:input path="lastname"/></td>
				<td><form:errors path="lastname" cssClass="error"></form:errors></td>
			</tr>
			<tr>
				<td>Password:</td>
				<td><form:password path="planePassword" /></td>
				<td><form:errors path="planePassword" cssClass="error"></form:errors></td>
			</tr>
			<tr>
				<td>Confirm password:</td>
				<td><form:password path="confirmPassword"/></td>
				<td><form:errors path="confirmPassword" cssClass="error"></form:errors></td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit"/>
				</td>
			</tr>
		</table>
		</form:form>
	</fieldset>
</div>